package tcm.com.gistone.database.mapper;

import org.apache.ibatis.annotations.ResultMap;
import org.apache.ibatis.annotations.Select;
import tcm.com.gistone.database.entity.Theme;
import tcm.com.gistone.database.entity.UserType;

import java.util.List;

public interface UserTypeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(UserType record);

    int insertSelective(UserType record);

    UserType selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(UserType record);

    int updateByPrimaryKey(UserType record);

    @Select("select * from tb_user_type")
    @ResultMap("tcm.com.gistone.database.mapper.UserTypeMapper.BaseResultMap")
    List<UserType> selectAll();

    @Select("select * from tb_user_type where type_name = #{name}")
    @ResultMap("tcm.com.gistone.database.mapper.UserTypeMapper.BaseResultMap")
    UserType selectByName(String name);
}